package com.ruoyi.funding.mapper;

import java.util.List;
import com.ruoyi.funding.domain.FundingAllocation;

/**
 * 资金拨款记录Mapper接口
 * 
 * @author ycl
 * @date 2025-01-06
 */
public interface FundingAllocationMapper 
{
    /**
     * 查询资金拨款记录
     * 
     * @param allocationId 资金拨款记录主键
     * @return 资金拨款记录
     */
    public FundingAllocation selectFundingAllocationByAllocationId(Long allocationId);

    /**
     * 查询资金拨款记录列表
     * 
     * @param fundingAllocation 资金拨款记录
     * @return 资金拨款记录集合
     */
    public List<FundingAllocation> selectFundingAllocationList(FundingAllocation fundingAllocation);

    /**
     * 新增资金拨款记录
     * 
     * @param fundingAllocation 资金拨款记录
     * @return 结果
     */
    public int insertFundingAllocation(FundingAllocation fundingAllocation);

    /**
     * 修改资金拨款记录
     * 
     * @param fundingAllocation 资金拨款记录
     * @return 结果
     */
    public int updateFundingAllocation(FundingAllocation fundingAllocation);

    /**
     * 删除资金拨款记录
     * 
     * @param allocationId 资金拨款记录主键
     * @return 结果
     */
    public int deleteFundingAllocationByAllocationId(Long allocationId);

    /**
     * 批量删除资金拨款记录
     * 
     * @param allocationIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFundingAllocationByAllocationIds(Long[] allocationIds);

    /**
     * 修改资金拨款记录，用于回溯
     *
     * @param fundingAllocation 资金拨款记录
     * @return 结果
     */
    public int updateFundingAllocation1(FundingAllocation fundingAllocation);
}
